@if(empty($right_sidebar_hidden) || !$right_sidebar_hidden)
<div id="Rightbar">
    <div class="sep20"></div>
    @guest
        <div class="box">
            <div class="cell">
                <strong>V2EX = way to explore</strong>
                <div class="sep5"></div>
                <span class="fade">V2EX 是一个关于分享和探索的地方</span>
            </div>
            <div class="inner">
                <div class="sep5"></div>
                <div align="center"><a href="{{ url('/register') }}" class="super normal button">现在注册</a>
                    <div class="sep5"></div>
                    <div class="sep10"></div>
                    已注册用户请 &nbsp;<a href="{{ url('login') }}">登录</a>
                </div>
            </div>
        </div>
        @else
            <div class="box">
                <div class="cell">
                    <table cellpadding="0" cellspacing="0" border="0" width="100%">
                        <tbody>
                        <tr>
                            <td width="48" valign="top">
                                <a href="{{ url('/user') }}">
                                    <img src="{{ \Auth::user()->avatar }}" class="avatar" border="0" align="default" style="max-width: 48px; max-height: 48px;">
                                </a>
                            </td>
                            <td width="10" valign="top"></td>
                            <td width="auto" align="left">
                                                  <span class="bigger">
                                                    <a href="{{ url('/user') }}">
                                                      {{ \Auth::user()->name }}
                                                    </a>
                                                  </span>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                    <div class="sep10"></div>
                    <table cellpadding="0" cellspacing="0" border="0" width="100%">
                        <tbody>
                        <tr>
                            <td width="33%" align="center"><a href="/my/nodes" class="dark" style="display: block;"><span class="bigger">{{ \Auth::user()->posts_count }}</span><div class="sep3"></div><span class="fade">我的主题</span></a></td>
                            <td width="34%" style="border-left: 1px solid rgba(100, 100, 100, 0.4); border-right: 1px solid rgba(100, 100, 100, 0.4);" align="center"><a href="/my/topics" class="dark" style="display: block;"><span class="bigger">{{ \Auth::user()->comments_count }}</span><div class="sep3"></div><span class="fade">我的帖子</span></a></td>
                            <td width="33%" align="center"><a href="/my/following" class="dark" style="display: block;"><span class="bigger">{{ \Auth::user()->follow_count }}</span><div class="sep3"></div><span class="fade">我的关注</span></a></td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <div class="cell">
                    <div style="width: 250px; background-color: #f0f0f0; height: 3px; display: inline-block; vertical-align: middle;"><div style="width: 28px; background-color: #ccc; height: 3px; display: inline-block;"></div></div>
                </div>
                <div class="cell" style="padding: 5px;">
                    <table cellpadding="0" cellspacing="0" border="0" width="100%">
                        <tbody><tr>
                            <td width="32">
                                <a to="/new-topic">
                                    <img src="{{ asset('/static/images/flat_compose.png') }}" width="32" border="0">
                                </a>
                            </td>
                            <td width="10"></td>
                            <td width="auto" valign="middle" align="left">
                                <a href="{{ url('/user/new-topic') }}">
                                    创作新主题
                                </a>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <div class="inner"><div class="fr" id="money"><a href="/balance" class="balance_area" style="">{{ \Auth::user()->credit }} <img src="//v2ex.assets.uxengine.net/static/img/bronze.png" alt="B" align="absmiddle" border="0"></a></div><a href="/notifications" class="fade">{{ \Auth::user()->message_count }} 条未读提醒</a></div>
            </div>
            @endguest

</div>

@endif